package _collections.collectionn;

import java.util.Arrays;

//可变参数
public class Changee {
    public static void main(String[] args) {
        cry();//不传数据
        cry(1);//传一个数据
        cry(1,2,3);//传多个数据
        cry(new int[]{1,2,3,4,5,6,7});//传递数组
    }
    public static void cry (int...number)
    {
        System.out.println(number.length);
        System.out.println(Arrays.toString(number));
        System.out.println("---------");
    }
}
